#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QString>
#include <QtSql>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QMessageBox>
#include <comment.h>
#include <schedule.h>
#include <show_comment.h>
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

void MainWindow::on_pushButton_clicked()
{
 Comment comment;
 comment.exec();
}
MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_3_clicked()
{
    this->close();
}

void MainWindow::on_pushButton_2_clicked()
{
    Schedule schedule;
    schedule.exec();
}


void MainWindow::on_pushButton_4_clicked()
{
    show_comment s;
    s.exec();
}
